<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?>


	<?php 
		//print_r ($this->input->post());
		
		echo form_fieldset('ITBPC 2011 Login',array('class' => 'login'));
		
		echo form_open('auth/error');
		
		echo form_label('Username','username');
		echo form_error('username');
		echo form_input(array(
				'name'	=> 'username',
				'value'	=> $this->input->post("username"),
				'class'	=> 'login',
				'maxlength'=>20, 
				));		
		
		echo form_label('Password','password');
		echo form_password(array(
				'name'        => 'password',
				'value'       => '',
				'class' => 'login',
				'maxlength'=>20, 
				));		
		
		if ($param=='error') 
			echo '<div style = "width:200px;" class="error">Username atau password salah.</div>'; 
			
		echo form_submit(array(
				'name' => 'login',
				'class' => 'submit')
						, 'Login');
		
		echo form_close();
		
		echo '<p class="content">Username dan password didapat setelah kontestan mengisi form pendaftaran</p>';

		echo '<p class="content">Lupa password ? Hubungi panitia.<br/>'.safe_mailto('itbpc.official@gmail.com').'</p>';
		echo form_fieldset_close(); 
		
	?>